<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
function label(c){
	return c.replace(/(&lt;([^&gt;]+)&gt;(?:.*)&lt;\/\2&gt;)/gm , '<span class=tag>$1</span>');
}
 function decode(c){
	 return decodeURIComponent(c);
 }
//	alert(label('&lt;code&gt;amoeba测试&lt;/code&gt; 0000'));
alert(decode('&lt;code&gt;amoeba测试&lt;/code&gt; 0000'));
</script>
</body>
</html>